﻿var _FD_FK029="";
var _FD_FK030="";
var _FD_FK031="";
var _FD_FK032="";
var _FD_FK033="";
var _FD_C0043="";
var _FD_C0110="";
var _FD_C0056="";
var _FD_C1007="";
var _FD_C0022="";
var _FD_C0064="";
var _FD_Femail="";
var __C1006="";
function $Feedback$() 
{
    showProgressBar(false,true);
    WebServices.User.Public.GetFeedEmail($onsuccFeed$);
}
function $onsuccFeed$(result)
{
     showProgressBar(false,true);    
        _FD_Femail = result[0];
        _FD_FK029 = result[1][0];
        _FD_FK030 = result[1][1];
        _FD_FK031 = result[1][2];
        _FD_FK032 = result[1][3];
        _FD_FK033 = result[1][4];
        _FD_C0043 = result[1][5];
        _FD_C0110 = result[1][6];
        _FD_C0056 = result[1][7];
        _FD_C1007 = result[1][8];
        _FD_C0022 = result[1][9];
        _FD_C0064 = result[1][10];
        __C1006= result[1][11];
         $("$divIput$").style.display = "none";
       var sFeedbackText="<div class='Popup_content'><div>"+_FD_FK029+"</div><span id='$spError$' style='color: Red; display: none;' class='red10'>"+_FD_FK030+"<br /></span>"
		sFeedbackText=sFeedbackText+"<div class='margin10'><input id='$caid0$' type='radio' name='cateid'  />"+_FD_FK031+"</div><div class='margin10'>"
		sFeedbackText=sFeedbackText+"<input id='$caid1$' type='radio' name='cateid'  />"+_FD_FK032+"</div>"
		sFeedbackText=sFeedbackText+"<div class='margin10'><strong>"+_FD_FK033+": </strong><span class='grey12'>("+_FD_C0043+")</span><br /><textarea id='$txtFeedContent$' name='txtContent' style='width:500px' rows='4' ></textarea></div>"
		sFeedbackText=sFeedbackText+"<div class='margin10'><input id='__btnSave'  type='button' class='button' value='"+_FD_C0110+"' onclick='__ShowFeed()' />&nbsp;&nbsp;<input id='btnCancel' type='button' class='buttong' value='"+_FD_C0056+"' onclick='_FD_Empty()' /></div></div>	"
		$ShowSampleFeedBox$(sFeedbackText);
}
function $ShowSampleFeedBox$(text)
{
     var obj={a:"",f:_FD_Femail}
    $ShowMessageBox$(_FD_C0022,text);
}
function _FD_Empty()
{
    $EndMessageBox$();
}
function __ShowFeed()
{
if($("$caid0$").checked==false&&$("$caid1$").checked==false) 
{
    $("$spError$").style.display='';
    return;
}
var __CateID="";
var __url=""+top.location;
if($("$caid0$").checked==true)
  {
    __CateID=0;
  }
  else
  {
    __CateID=1;
  }
   WebServices.User.Public.AddjsFeedBackCat(_FD_Femail,__CateID,$("$txtFeedContent$").value,__url,$fdonsucc$,___onError);
  }
function $fdonsucc$(result)
{
 if(result.State)
 {
     $EndMessageBox$();
 }
else
{
    $("$Message$").innerHTML = "<div><h3>"+__C1006+"</h3><p style='text-align: center;'><input type='button' value='"+_FD_C0064+"' class='buttong' onclick='javascript:_FD_Empty();' /></p></div>";
}
}
function ___onError(e)
{
     $EndMessageBox$();
}
